<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="${website}resource/admin/css/admin.css" type="text/css" />
<script type="text/javascript" src="${website}resource/js/common_min.js"></script>
<title>城市交通列表</title>
<script type="text/javascript">
	$(document).ready(function(){
		$(".wrap").each(function(){
			var text = $(this).html();
			text = text.replace(/\n/gi,"<br>");
			$(this).html(text);
		});
	});
</script>
</head>
<body>
<div class="currentPosition"><img src="${staticWebsite}admin/images/tb.gif"/>城市交通类表<span style="margin-left:850px;">
	<c:if test="${fn:length(cityInfoList)< 9}">
		<img src="${staticWebsite}admin/images/add.gif"/>
		<a href="${website}admin/city_toAddTrafficInfo.action">添加</a>
	</c:if>
 </span></div>
	<table class="commonTable">
		<c:forEach var="cityTraffic" items="${cityTrafficList}">
			<tr>
				<td colspan="2"><a href="${website}admin/city_toModifyTrafficInfo.action?id=${cityTraffic.id}">编辑</a></td>
			</tr>
			<tr>
				<td width="10%">城市</td>
				<td>${cityTraffic.cityName}</td>
			</tr>
			<tr>
				<td>市外交通</td>
				<td class="wrap">${cityTraffic.outsideDescription}</td>
			</tr>
			<tr>
				<td>市内交通</td>
				<td class="wrap">${cityTraffic.insideDescription}</td>
			</tr>
			<tr>
				<td>温馨提示</td>
				<td class="wrap">${cityTraffic.tips}</td>
			</tr>
		</c:forEach>
	</table>
</body>
</html>